// app.js
const util = require('./utils/util.js')
import Event from './utils/event'//引入工具类Event
wx.event = new Event();//挂载发布订阅至wx对象上

App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)
  },

  globalData: {
    openId:'',
    openPassword:'',
    userInfo: {},
    list:[],
    isAdvising:'',//是否有进行中的咨询
    nowAdvising:{},//当前进行中的咨询的信息
    chatId:'',//当前进行中的咨询的ID
    advisorList:[],
    chosenRecordList:[]//待发送的记录列表
  },

  im_globalData:{//腾讯IM相关全局变量
    isInit:false,
    msg:{},
    conversations:{}
  }
})